package android.app.betmein.activity;

import model.Bet;
import android.app.Activity;
import android.app.betmein.R;
import android.content.Intent;
import android.framework.paging.ObjectHolder;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class DebugActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_debug);
    }

    public void onButtonClicked(View v){
    	Bet bet = new Bet();
    	bet.getTitle().setText("Bet Title");
    	bet.getDescription().setText("Description");
    	
    	startActivity(DisplayBetActivity.class, bet);
    }
    
    private void startActivity(Class<?> activityType, Object obj){
    	if(obj != null){
			ObjectHolder.getInstance().addObject(activityType, obj);
		}
		startActivity(new Intent(this, activityType));
    }
    
}
